package com.blockchain.sql;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class DBConnect {
    public Connection getConnection() throws ClassNotFoundException, SQLException {

        String url = "jdbc:mysql://127.0.0.1:32768/os_users";
        String user = "root";
        String password = "123456";
        Class.forName("com.mysql.cj.jdbc.Driver");

        return DriverManager.getConnection(url, user, password);
    }
}
